<?php
/**
 * Created by JetBrains PhpStorm.
 * User: xami
 * Date: 12-9-11
 * Time: 下午11:39
 * To change this template use File | Settings | File Templates.
 */
$criteria=new CDbCriteria;
$criteria->condition='status=1';
$dataProvider=new CActiveDataProvider('Adviser',array(
    'criteria'=>$criteria,
    'pagination'=>array(
        'pageSize'=>15,
)));

$session=new CHttpSession();
$session->open();
$session['i']=1;

?>
<style type="text/css">
    .list-view .items{
        padding: 0;
        margin: 0;
    }
</style>

<div class="detailContent" style="margin: 0;padding: 5px;min-height: 1335px" >
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3 paddingbotton80 ">
        <tbody>

    <?php
    if(!empty($dataProvider->data)) {
        ?>
    <tr>
        <th width="16%" bgcolor="#efefef" align="center" class="th1">姓名</th>
        <th width="16%" bgcolor="#efefef" align="center" class="th1">职务</th>
        <th width="18%" bgcolor="#efefef" align="center">学历</th>
        <th width="18%" bgcolor="#efefef" align="center">操作</th>
    </tr>
        <?php

        $this->widget('zii.widgets.CListView', array(
            'dataProvider'=>$dataProvider,
            'itemView'=>'_adviser',
            'ajaxUpdate'=>false,
            'template'=>"{items}\n{pager}",
//        'itemsTagName'=>'ul',
//        'itemsCssClass'=>'tb',
        ));
    }
    ?>
        </tbody></table>

    <div class="clear"></div>
</div>